package com.heima.common.constants.article;

/**
 * @作者 itcast
 * @创建日期 2020/10/7 9:50
 **/
public class ArticleConstants {
    public static final Short LOADTYPE_LOAD_MORE = 1;
    public static final Short LOADTYPE_LOAD_NEW = 2;
    public static final String DEFAULT_TAG = "__all__";
    // 用于计算热点文章的权重
    public static final Integer HOT_ARTICLE_LIKE_WEIGHT = 3;
    public static final Integer HOT_ARTICLE_COMMENT_WEIGHT = 5;
    public static final Integer HOT_ARTICLE_COLLECTION_WEIGHT = 8;
    // redis中热点文章缓存的key前缀  整个格式: hot_article_first_page_ + 频道ID
    public static final String HOT_ARTICLE_FIRST_PAGE = "hot_article_first_page_";
}
